//
//  BluetoothCell.m
//  NEWHYSJ
//
//  Created by CYF on 2016/12/27.
//  Copyright © 2016年 SH. All rights reserved.
//

#import "BluetoothCell.h"
@interface BluetoothCell()
@property(nonatomic,strong)UIView *line;
@end
@implementation BluetoothCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addLabel];
        [self layoutMySubviews];
    }
    
    return self;
}
- (void)addLabel{
     self.bluetoothLabel = [SHLabel labelWithTextFont:15 textColor:KSHTEXTCOLOR textAlignment:NSTextAlignmentLeft];
     [self.contentView addSubview:self.bluetoothLabel];
    
    self.line = [[UIView alloc]init];
    self.line.backgroundColor = KLINECOLOR;
    [self.contentView addSubview:self.line];
    
    
    
    
}
- (void)layoutMySubviews{
    [self.bluetoothLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView.mas_left).with.offset(__I6Width(15));
        make.right.mas_equalTo(self.contentView.mas_right).with.offset(__I6Width(0));
        make.bottom.equalTo(self.contentView);
        make.top.equalTo(self.contentView);

    }];
    
    [self.line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.contentView.mas_left).with.offset(__I6Width(0));
        make.right.mas_equalTo(self.contentView.mas_right).with.offset(__I6Width(0));
        make.height.mas_equalTo(0.5);
        make.bottom.mas_equalTo(self.contentView.mas_bottom).with.offset(0);
    }];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
